<include file="Common:header" />
<table id="columns">
<tr>
<td id="main">

 <div class="panel_b">
 服务筛选
 </div>
 <div class="panel_bb">
	<form method="get" action="<{:SITE_URL}>/Fuwu/dlist">
		<div class="panel_bb_p">
		  <div class="lie_biao">
			 <label class="lie_bi"> <strong>&nbsp;&nbsp;关键字:</strong></label>				 
			 <input id="kw" name="kw" type="text" class="input_text_shuaixuan" value="" />
			 </div>
			 <select id="hpdj" name="hpdj" class="lie_bb">
			 <option value='-1'>好评等级</option> 
			 <option value='1'>一级</option>
			 <option value='2'>二级</option>
			 </select>			
			 <select id="fufenlei" name="fufenlei" class="lie_bb">
			 <option value='-1'>服务分类</option>
			 <volist name="vol_fuwu" id="vol_fuwu">
			 <option value="<{$vol_fuwu['skill_id']}>"><{$vol_fuwu['skill_name']}></option>
			 </volist>
			 </select>
	         <select id="zifenlei" name="zifenlei"  class="lie_bb">
			 <option value='-1'>服务分类</option>
			 </select>
			 <script language="javascript">
				$(document).ready(function(){
				    //下面是一级下来的时候
					$('#fufenlei').change(function(){
						if(this.value==-1){							
							return;
						}
						$.post('<{:SITE_URL}>/Setting/ajaxData_fuwu',{pid:this.value},function(data){
							if(data.status==1){
								$('#zifenlei').empty();//清空原有的数据
								$("<option value='-1'>服务分类</option>").appendTo("#zifenlei");
								$.each(data.data, function(i,n){
									$("<option value='"+n.skill_id+"'>"+n.skill_name+"</option>").appendTo("#zifenlei");
								});
								
							}else{
								alert('没有子级了!');
							}
						},'json');
					});					
				});
			 </script>
		</div>
		<div class="panel_bb_p">
			<select id="lone" name="lone" class="lie_bb">
			<option value="-1">选择省份</option>
			<volist name="vol" id="vol">
			<option value="<{$vol['region_id']}>"><{$vol['region_name']}></option>
			</volist>
			</select>
			<select id="ltwo" name="ltwo" class="lie_bb"><option value="-1">选择城市</option></select>
			<select id="lthree" name="lthree" class="lie_bb"><option value="-1">选择县城</option></select>
			<script language="javascript">
				$(document).ready(function(){
					//$('#ltwo').hide();
					//$('#lthree').hide();
					//下面是一级下来的时候
					$('#lone').change(function(){
						if(this.value==-1){
							//$('#ltwo').hide();
							//$('#lthree').hide();
							return;
						}
						$.post('<{:SITE_URL}>/Setting/ajaxData',{pid:this.value},function(data){
							if(data.status==1){
								//$('#lthree').hide();
								$('#ltwo').empty();//清空原有的数据
								$("<option value='-1'>选择城市</option>").appendTo("#ltwo");
								$.each(data.data, function(i,n){
									$("<option value='"+n.region_id+"'>"+n.region_name+"</option>").appendTo("#ltwo");
								});
								$('#ltwo').show();
							}else{
								alert('没有子级了!');
							}
						},'json');
					});
					//下面是二级下来的时候
					$('#ltwo').change(function(){
						if(this.value==-1){
							//$('#lthree').hide();
							return;
						}
						$.post('<{:SITE_URL}>/Setting/ajaxData',{pid:this.value},function(data){
							if(data.status==1){
								$('#lthree').empty();//清空原有的数据
								$("<option value='-1'>选择县城</option>").appendTo("#lthree");
								$.each(data.data, function(i,n){
									$("<option value='"+n.region_id+"'>"+n.region_name+"</option>").appendTo("#lthree");
								});
								$('#lthree').show();
							}else{
								alert('没有子级了!');
							}
						},'json');
					});
				});
				</script>
			
			<select id="ydb" name="ydb" class="lie_bb">
			<option value='-1'>余额保单</option> 
			<option value='0'>不需要担保</option>
			<option value='0.2'>需要0.2元担保</option>
			</select>  
			<input id="ut" name="ut" type="checkbox" />  实名 <input type="submit" class="button-servicesearch" value="搜索服务" /> 
		</div>
	</form>
 </div>

 <div id="welleft">	
	<div class="theysay"><strong>服务大厅:</strong> &nbsp;&nbsp;&nbsp;&nbsp; <a href="<{:SITE_URL}>/Fuwu/dlist?mines=on">我的服务</a>&nbsp;&nbsp;&nbsp;&nbsp;
	<php>$ct = explode(" ", $my['city_code']); </php>
	<a href="<{:SITE_URL}>/Fuwu/dlist?tongc=<{$ct[2]}>">同城服务</a></div>
	<div class='clearline2'></div>
	<div class='title'></div>
	<div class="marqueegb">				
		<ol>
			<volist name="volfuwulist" id="volfuwulist">
			<!--最小单元-->
				  <li class="indexgbli">
					  <div>
						  <table border="0" width="100%">
							  <tr>
								  <td width="60px" valign="top"><a href="<{:SITE_URL}>/Setting/face" title="修改头像"><img src="<{:sethead($volfuwulist[user_head])}>" width="50px" height="50px" alt="<{$volfuwulist[user_name]}>" class="imgborder"></a>
								  </td>
								  <td valign="top">
									  <a href="<{:SITE_URL}>/<{$volfuwulist[user_name]}>"> <{$volfuwulist[user_name]}> </a><span class="guanxi"><php>if($volfuwulist['shifouweiqinyou']){</php> &nbsp;的<php>}</php><{$volfuwulist[hewodeganxi]}></span>&nbsp;&nbsp;<{$volfuwulist['fuwuleibieming']}>&nbsp;&nbsp;服务详情: <{$volfuwulist['fuwuxiangqing']}>
									  <div><div class="spl"> 
									  <{$volfuwulist['fuwubiaoti']}>
									  </div> 
									   <div class="spr">  
									  购买数:<{$volfuwulist['yongfugoumaishu']}> | 好评:<{$volfuwulist['haopinggeshu']}> |单价:<{$volfuwulist['fuwujiage']}>元 | <a href="<{:SITE_URL}>/Fuwu?id=<{$volfuwulist['fuwuid']}>">详情 </a>|<input onclick="sdetail(<{$volfuwulist['fuwuid']}>)"  type="submit" class="button" value="购买" />
									  </div></div>
									 
								  </td>
							  </tr>
						  </table>
					  </div>
				  </li>
			  <!--最小单元--></volist>
	    </ol>
	</div>
 </div>
<div class='clearline'></div>


 

</td>
    <td id="sidebar" rowspan="2">
        <php>if($volfuwulist['user_id']==$volfuwulist[user_id]){</php><include file="Space:homeside" /><php>}else{</php><include file="Space:proside" /><php>}</php>
    </td>
</tr>
<tr>
    <td height="36px">
	   <div class="green-black"><{$page_fuwu}></div>
       <!-- <div id="indexpage" class="page"><{$page}></div>-->
    </td>
</tr>
</table>
<script type="text/javascript">	 
	$('#ut').attr("checked",<{$t_truename}>);
	$('#ydb').val('<{$t_ydanbao}>');
	$('#hpdj').val('<{$t_haopinggs}>');
	$('#fufenlei').val('<{$t_fufenlei}>');
	$.post('<{:SITE_URL}>/Setting/ajaxData_fuwu',{pid:'<{$t_fufenlei}>'},function(data){
						if(data.status==1){
							$('#zifenlei').empty();//清空原有的数据
							$("<option value='-1'>服务分类</option>").appendTo("#zifenlei");
							$.each(data.data, function(i,n){
								$("<option value='"+n.skill_id+"'>"+n.skill_name+"</option>").appendTo("#zifenlei");
							});							
							 $('#zifenlei').val('<{$t_zifenlei}>');							
						}else{
							//alert('没有子级了!');
						}
					},'json');

	$('#lone').val('<{$t_lone}>');
	$.post('<{:SITE_URL}>/Setting/ajaxData',{pid:"<{$t_lone}>"},function(data){
				if(data.status==1){
					$('#ltwo').empty();//清空原有的数据
					$("<option value='-1'>选择城市</option>").appendTo("#ltwo");
					$.each(data.data, function(i,n){
						$("<option value='"+n.region_id+"'>"+n.region_name+"</option>").appendTo("#ltwo");
					});
					$('#ltwo').val("<{$t_ltwo}>");
				
				}else{
					//alert('没有子级了!');
				}
			},'json');
	$.post('<{:SITE_URL}>/Setting/ajaxData',{pid:"<{$t_ltwo}>"},function(data){
				if(data.status==1){
					$('#lthree').empty();//清空原有的数据
					$("<option value='-1'>选择县城</option>").appendTo("#lthree");
					$.each(data.data, function(i,n){
						$("<option value='"+n.region_id+"'>"+n.region_name+"</option>").appendTo("#lthree");
					});
					$('#lthree').val("<{$t_lthree}>");
				
				}else{
					//alert('没有子级了!');
				}
			},'json');
		$('#kw').val('<{$t_kw}>');

		function sdetail(id){
		    window.location.href="<{:SITE_URL}>/Fuwu/maifuwu/?fwid="+id;
	    }


		//定义鼠标移动事件. 7/4/2011
		$("ol li").slice(0, <{$count}>).mouseover(function(){
                   $(this).addClass("indexgbli_light");
                   $(this).removeClass("indexgbli");
                });
                $("ol li").slice(0, <{$count}>).mouseout(function(){
                   $(this).addClass("indexgbli");
                   $(this).removeClass("indexgbli_light");
                });
	
</script>


<include file="Common:foot" />